<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let age = 18

        // 存储缓存数据
        localStorage.setItem( "Age" , age)
        // 读取缓存数据
        let localAge = localStorage.getItem("age")
        console.log(localAge);
        // 删除缓存数据
        // localStorage.removeItem("age")
        localStorage.clear()
        

    </script>
</body>
</html>